@import url(./base.less);

.wrapper {
  width: 1240px;
  margin: 0 auto;
}

// header部分
header {
  height: 76px;
  line-height: 76px;

  a {
    font-size: 15px;
  }

  h1 {
    float: left;
    height: 100%;

    a {
      display: block;
      margin: auto;

      img {
        width: 320px;
      }
    }
  }

  ul {
    float: left;
    margin-right: 45px;

    li {
      float: left;
      margin-left: 48px;

      a {
        font-weight: bold;
      }

      .line {
        height: 4px;
        // background-color: #ff983f;
        transform: translateY(-24px);
      }
    }
  }
}

// 主图部分
.banner {
  background: url(../uploads/10035.jpg) center no-repeat;

  .wrapper {
    position: relative;
    height: 420px;

    .txt {
      position: absolute;
      top: 30%;
      left: 0;
      font-weight: 100;


      div {
        color: #fff;
        letter-spacing: 0.2em;

        &:first-child {
          font-size: 45px;
        }

        &:last-child {
          font-size: 14px;
        }
      }
    }
  }
}

// 固定导航
nav {
  // 这样处理吸顶效果不好，存在兼容性的问题
  /* position: sticky;
  position: -webkit-sticky; // 兼容 -webkit 内核的浏览器
  top: -1px; */
  position: relative;
  display: flex; //转成行内快，解决nav与上面元素之间的间隙
  width: 100%;
  height: 54px;
  background-color: #fbfbfb;
  z-index: 999;

  &.active {
    position: fixed;
    top: 0;
  }

  .wrapper {

    ul {

      li {
        float: left;
        width: 124px;
        height: 54px;
        text-align: center;

        &.current,
        &:hover {
          a {
            color: #ff983f;
            text-decoration: none;

            b {
              left: 0;
            }
          }
        }

        a {
          position: relative;
          display: block;
          height: 100%;
          margin: 0 30px;
          line-height: 54px;
          font-size: 16px;
          overflow: hidden;

          b {
            position: absolute;
            bottom: 0;
            left: -100%;
            width: 100%;
            height: 2px;
            background-color: #ff983f;
            transition: all .5s;
          }
        }
      }
    }
  }
}

section {
  .title {
    padding: 100px 0 50px 0;
    text-align: center;
    font-size: 32px;
    font-weight: bold;
  }

  // 公司简介
  &.aboutUs {
    .content {
      width: 960px;
      margin: 0 auto;

      p {
        font-size: 14px;
        margin-top: 1.5em;


        &:first-child {
          font-size: 16px;
          font-weight: bold;
          color: #ff983f;
        }
      }
    }
  }

  // 发展历程
  &.developing {

    // 时间轴
    .timeLine {
      position: relative;
      height: 80px;
      overflow: hidden;

      .line {
        position: absolute;
        top: 50%;
        width: 100%;
        height: 3px;
        border: 1px solid #E3E3E3;
      }

      .time {
        position: absolute;
        left: 46.49%;
        height: 80px;
        transition: .3s;

        li {
          position: relative;
          float: left;
          width: 108px;
          height: 80px;
          text-align: center;

          span {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 56px;
            height: 56px;
            line-height: 54px;
            background-color: #fff;
            border: 1px solid #E3E3E3;
            border-radius: 50%;
            transition: transform .3s;
          }

          &.current {
            span {
              transform: translate(-50%, -50%) scale(1.45);
              background-color: #ff983f;
              color: #fff;
            }
          }
        }
      }

    }

    // 展开小图标
    .arrowDown {
      padding: 20px 0;
      text-align: center;

      img {
        height: 19px;
      }
    }

    // 内容部分
    .content {
      position: relative;
      margin-bottom: 100px;
      background-color: #fbfbfb;

      .pic {
        img {
          height: 480px;
        }
      }

      .right {
        position: absolute;
        right: 0;
        width: 530px;
        margin: 50px 46px 0 124px;
        opacity: 0;

        &.current {
          opacity: 1;
        }

        .year {
          margin-bottom: 40px;
          font-weight: bold;
          font-size: 44px;
        }

        .event {

          .item {
            display: flex;
            margin-bottom: 20px;
            font-size: 14px;

            .month {
              padding-right: 0.5em;
              font-weight: bold;
              font-size: 18px;
            }

            p {
              flex: 1;
              padding-left: 5px;
              font-size: 14px;
            }
          }
        }
      }
    }
  }

  // 企业荣誉
  &.honor {
    height: 440px;
    background: url(../uploads/10036.png) center center no-repeat;
    background-size: cover;

    a {
      position: relative;
      display: block;
      height: 100%;
      text-align: center;
      color: #fff;

      &.current {
        .more {
          img {
            right: -30%;
            opacity: 1;
          }
        }
      }

      .txt {
        padding-bottom: 135px;

        .title {
          font-size: 48px;
          color: #fff;
          padding-bottom: 0;
        }

        p {
          font-size: 20px;
          font-weight: 100;
        }
      }

      .more {
        position: relative;
        display: inline-block;
        font-size: 24px;
        font-weight: bold;

        img {
          position: absolute;
          right: 0;
          top: 20%;
          width: 30px;
          opacity: 0;
          transition: all .6s;
        }
      }
    }
  }

  // 管理团队
  &.managerTeam {
    .title {
      margin-bottom: 20px;
      text-align: left;
    }

    .content {
      width: 1240px;
      margin: 0 -30px;
      cursor: pointer;

      .content-box {
        position: relative;
        height: 360px;
        display: none;
      }

      .content-line {
        position: absolute;
        width: 100%;
        height: 360px;
        opacity: 0;


        &:hover {
          .close {
            .btn-current {
              opacity: 1 !important;
            }
          }
        }

        .found {

          // margin-left: 150px;
          height: 360px;

          .found-list {
            position: relative;
            height: 360px;

            img,
            >p,
            div {
              position: absolute;
            }

            .close {
              right: 30px;
              top: 0px;
              opacity: 1;
              background-size: contain;

              img {
                width: 16px;

                &.btn-current {
                  opacity: 0;
                }

              }
            }

            >img {
              height: 360px;
            }

            p {
              width: 790px;


              &.name {
                font-size: 48px;
                font-weight: 100;
              }

              &.desc {
                top: 68px;
                font-size: 24px;
                font-weight: bold;
              }
            }

            .descript {
              top: 140px;
              font-size: 14px;

              p {
                margin: 0;
                line-height: 1.8;
                font-weight: 100;
              }
            }

            &.left {

              >img {
                left: 100px;
              }

              .name,
              .desc,
              .descript {
                right: 30px;
              }
            }

            &.right {

              >img {
                right: 100px;
              }

              .name,
              .desc,
              .descript {
                left: 30px;
              }
            }


          }

        }
      }

      .item {
        float: left;
        width: 50%;
        padding: 0 30px 60px 30px;

        a {
          display: flex;
          height: 160px;
          transition: .6s;

          &.current {
            box-shadow: 4px 4px 30px 0px rgb(0 0 0 / 15%);


            .fl {
              background-color: #fff;
              border-left: 5px solid #ff983f;

              img {
                bottom: 14px;

                opacity: 0;

                &.btn-arrow-current {
                  opacity: 1;
                  z-index: 1;
                }
              }
            }
          }

          .fl {
            position: relative;
            flex: 1;
            border-left: 5px solid transparent;
            background-color: #f5f5f5;

            p {
              position: absolute;
              left: 40px;

              &.name {
                top: 54px;
                font-size: 24px;
                font-weight: bold;
                color: #000;
              }

              &.desc {
                top: 87px;
                font-size: 14px;
                color: #959492;
              }
            }

            img {
              position: absolute;
              bottom: 10px;
              right: 14px;
              width: 20px;
              transition: all .6s;

              &.btn-arrow-current {
                opacity: 0;
              }
            }
          }

          .fr {
            img {
              width: 160px;
            }
          }
        }
      }
    }
  }

  // 公司业务
  &.business {
    margin-top: 40px;
    background-color: #fbfbfb;

    .wrapper {
      height: 694px;

      .title {
        padding-bottom: 0;

        a {
          position: relative;

          img {
            position: absolute;
            right: 0;
            width: 30px;
          }

          &:hover {
            img {
              opacity: 0;

              &.orange {
                opacity: 1
              }
            }
          }
        }
      }

      .branch {
        position: relative;
        height: 422px;

        >img {
          position: absolute;
          top: 19%;
          left: 50%;
          width: 1016px;
          transform: translateX(-50%);
        }

        div {
          position: absolute;
          text-align: center;

          p {
            margin: 0;
            font-size: 14px;
            color: #646362;
          }

          &.item {
            a {
              display: block;
              height: 110px;
              background-color: #f5f5f5;
              text-align: center;
              color: #000;

              &:hover {
                background-color: #fff;
                box-shadow: 10px 10px 15px 0px rgb(179 174 169);
                color: #ff983f;
              }
            }
          }
        }

        .first {
          left: 50%;
          transform: translate(-50%, 0%);

          img {
            margin-bottom: 10px;
            width: 200px;
          }
        }

        .second {
          top: 33%;

          &.left {
            left: 7%;
          }

          &.right {
            right: 7%;
          }

          a {
            width: 300px;
            font-size: 28px;
            line-height: 100px;
          }
        }

        .third {
          bottom: 1px;

          a {
            padding-top: 30px;
            width: 220px;

            span {
              display: block;
            }

            .name {
              font-size: 24px;
              font-weight: bold;
            }

            .desc {
              font-size: 14px;
            }
          }
        }
      }
    }
  }

  &.address {
    .title {
      text-align: left;
    }

    .address-line {
      .line {
        height: 1px;
        background-color: #e3e3e3;
      }

      ul {
        li {
          float: left;
          margin: 0 50px 0 24px;

          &.current,
          &:hover {
            a {
              color: #000;
              font-weight: bold;

              b {
                left: 0;
              }
            }

          }

          a {
            position: relative;
            display: block;
            height: 50px;
            line-height: 50px;
            font-size: 20px;
            overflow: hidden;
            color: #646362;



            b {
              position: absolute;
              top: 0;
              left: -100%;
              width: 100%;
              height: 4px;
              background-color: #ff983f;
              transition: 0.5s;
            }
          }
        }
      }

      .content {
        position: relative;
        padding: 24px;
        min-height: 300px;

        .content-box {
          position: absolute;
          display: none;
          font-size: 16px;

          p {
            margin: 0;
            line-height: 1.75em;
          }

          &.current {
            display: block;
          }
        }
      }
    }
  }
}

footer {
  background-color: #fbfbfb;

  .wrapper {
    position: relative;
    height: 434px;
    padding-top: 65px;

    .line {
      position: absolute;
      left: 852px;
      width: 0.5px;
      height: 300px;
      background-color: #BBBBBA;
      opacity: 0.6;
    }

    .fl {

      a:hover {
        color: #ff983f !important;
      }

      .top {
        margin-bottom: 5px;

        dl {
          float: left;
          margin-right: 55px;

          dt {
            margin-bottom: 14px;
            font-size: 18px;
            font-weight: normal;
          }

          dd {
            margin-bottom: 10px;

            a {
              font-size: 14px;
              color: #646362;


            }
          }
        }
      }

      .bottom {
        font-size: 14px;

        a {
          color: #959492;

        }
      }
    }

    .fr {
      text-align: right;

      p {
        margin-bottom: 1em;
        font-size: 14px;
        color: #000;
      }

      .icon {

        a {
          position: relative;
          display: inline-block;
          width: 26px;
          height: 26px;
          margin-left: 36px;

          &:hover {
            img {
              &:nth-child(2) {
                opacity: 0;
              }
            }
          }

          img {
            position: absolute;
            top: 0;
            left: 0;
            width: 26px;
          }

          &.weixin {

            &:hover {
              b {
                display: block;
              }
            }

            b {
              display: none;
              position: absolute;
              left: 50%;
              top: -50%;
              width: 176px;
              height: 176px;
              transform: translate(-50%, -100%);
              transition: all 0.2s;

              img {
                width: 176px;
              }
            }
          }


        }



      }

      .loge {
        position: absolute;
        bottom: 70px;
        right: 0;

        img {
          width: 320px;
          transition: all 1s;
        }

        &:hover {
          img {
            transform: scale(1.01);
          }
        }
      }
    }


  }
}